package com.gridmobi.xrtb.domain.dsp.common;

import java.io.Serializable;
import java.util.List;

public class OpenApiResponseDTO<T> {

    private boolean success;
    private boolean scroll;
    private T data;
    private List<T> datas;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public boolean isScroll() {
        return scroll;
    }

    public void setScroll(boolean scroll) {
        this.scroll = scroll;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public OpenApiResponseDTO(boolean success, boolean scroll, T data) {
        this.success = success;
        this.scroll = scroll;
        this.data = data;
    }

    public OpenApiResponseDTO(boolean success, boolean scroll, List<T> datas) {
        this.success = success;
        this.scroll = scroll;
        this.datas = datas;
    }

    public OpenApiResponseDTO() {
    }

    public List<T> getDatas() {
        return datas;
    }

    public void setDatas(List<T> datas) {
        this.datas = datas;
    }
}
